#ifndef SINGLEDICTDIALOG_H
#define SINGLEDICTDIALOG_H

#include <QtGui/QDialog>
#include "singledictmodel.h"

namespace Ui {
    class SingleDictDialog;
}

class SingleDictDialog : public QDialog {
    Q_OBJECT
public:
    SingleDictDialog(const QString &dictNameI, const QString &sqlTableI,
                     QWidget *parent = 0);
    QString SqlTable();
    QString DictName();
    ~SingleDictDialog();
protected:
    void changeEvent(QEvent *e);
private:
    Ui::SingleDictDialog *m_ui;
    QString _sqlTable;
    QString dictName;
    SingleDictModel *model;
private slots:
    void on_pbEdit_clicked();
    void on_pbDelete_clicked();
    void on_pbAdd_clicked();
    void on_leFilter_textChanged(QString );
    void filtrate();
    void selectCurrentRow(const QModelIndex & topLeft, const QModelIndex & bottomRight);
};

#endif // SINGLEDICTDIALOG_H
